<template>
  <div id="app">
    <transition name="ani">
      <router-view class="page"/>
    </transition>
    
  </div>
</template>

<style lang="scss">
#app {
  position: relative;
}
.page {
  width:100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
.ani-enter {
  left: 100%;
}

.ani-leave-to {
  left: -100%;
  transform: rotate(90deg);
  opacity: 0;
}
.ani-enter-active, .ani-leave-active {
  transition: all .5s;
  transform-origin: center;
}
</style>
